package com.ztgf.order.models.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.ztgf.common.annotations.CustomerBigDecimalSerialize;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * author: chenyu.wang
 * date: 2020-06-30 19:57
 * Description: 后台管理系统售后列表VO
 */
@Data
public class OrderReturnCommodityAdminListVO implements Serializable {

    @ApiModelProperty(value = "售后订单退换货表id")
    private Long id;

    @ApiModelProperty(value = "订单商品表id")
    private Long orderCommodityId;

    @ApiModelProperty(value = "订单id")
    private Long orderId;

    @ApiModelProperty(value = "订单编号")
    private String orderNo;

    @ApiModelProperty(value = "买家名称")
    private String buyersName;

    @ApiModelProperty(value = "卖家名称")
    private String sellerName;

    @ApiModelProperty(value = "售后状态;0未售后、1申请售后、2售后中、3售后完成")
    private Integer afterSalesState;

    @ApiModelProperty(value = "交易时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date orderTime;

    @ApiModelProperty(value = "买家店铺id")
    private Long buyersShopId;

    @ApiModelProperty(value = "卖家店铺id")
    private Long sellerShopId;

    @ApiModelProperty(value = "退款金额")
    @JsonSerialize(using = CustomerBigDecimalSerialize.class)
    private BigDecimal refundPrice;

    @ApiModelProperty(value = "平台协调状态:0未协调,1买赢,2卖赢")
    private Integer consortState;

    @ApiModelProperty(value = "平台协调备注")
    private String consortRemarks;
}
